package com.example.login_captcha_2.dto;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserLoginDTO implements Serializable {
    private static final long serialVersionUID = 18L;

    /**
     * uuid：随机字符串
     */
    @NotEmpty(message = "验证码已过期，请重新获取")
    private String uuid;

    /**
     * 验证码
     */
    @NotEmpty(message = "验证码不允许为空")
    private String code;

    /**
     * 用户名
     */
    @NotEmpty(message = "用户名不允许为空")
    private String username;

    /**
     * 密码
     */
    @NotEmpty(message = "密码不允许为空")
    private String password;
}